{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: invalid value encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: invalid value encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: invalid value encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1216: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  b = (dx2 - dx1) / (dx1 * dx2)\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1215: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  a = -(dx2)/(dx1 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1217: RuntimeWarning: divide by zero encountered in true_divide\n",
      "  c = dx1 / (dx2 * (dx1 + dx2))\n",
      "d:\\anaconda3\\envs\\py38\\lib\\site-packages\\numpy\\lib\\function_base.py:1223: RuntimeWarning: invalid value encountered in add\n",
      "  out[tuple(slice1)] = a * f[tuple(slice2)] + b * f[tuple(slice3)] + c * f[tuple(slice4)]\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n",
      "C:\\Users\\Crange\\AppData\\Local\\Temp/ipykernel_25444/3430922707.py:54: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
      "  result_df2 = result_df2.append({\n"
     ]
    }
   ],
   "source": [
    "import os\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "\n",
    "# 获取所有前缀为IdVg的CSV文件\n",
    "directory = \"E:\\\\Study\\\\Postgraduate\\\\Zhongshan\\\\experiment_data\\\\ITO-MIS\\\\20241016_ITO-RF90-50-8-600-Al-DC30-50-5-1000\\\\200c1h-180c15m\"\n",
    "file_prefix = \"IdVd\"\n",
    "files = [f for f in os.listdir(directory) if f.startswith(file_prefix) and f.endswith('.csv')]\n",
    "\n",
    "# 创建名为ro的文件夹（如果不存在）\n",
    "output_dir = os.path.join(directory, 'ro')\n",
    "os.makedirs(output_dir, exist_ok=True)\n",
    "\n",
    "for file_name in files:\n",
    "    file_path = os.path.join(directory, file_name)\n",
    "    \n",
    "    # 读取CSV文件\n",
    "    df = pd.read_csv(file_path)\n",
    "\n",
    "    result_df1 = pd.DataFrame()\n",
    "    result_df2 = pd.DataFrame()\n",
    "\n",
    "    column_groups = {}\n",
    "    for col in df.columns:\n",
    "        if col.endswith(')'):\n",
    "            suffix = col.split('(')[-1]\n",
    "            if suffix not in column_groups:\n",
    "                column_groups[suffix] = []\n",
    "            column_groups[suffix].append(col)\n",
    "\n",
    "    for suffix, cols in column_groups.items():\n",
    "        Igs_col = next((col for col in cols if 'Igs' in col), None)\n",
    "        Vgs_col = next((col for col in cols if 'Vgs' in col), None)\n",
    "        Ids_col = next((col for col in cols if 'Ids' in col), None)\n",
    "        Vds_col = next((col for col in cols if 'Vds' in col), None)\n",
    "\n",
    "        if Igs_col and Vgs_col and Ids_col and Vds_col:\n",
    "            Igs = df[Igs_col]\n",
    "            Vgs = df[Vgs_col]\n",
    "            Ids = df[Ids_col]\n",
    "            Vds = df[Vds_col]\n",
    "\n",
    "            ro = np.gradient(Vds, Ids)\n",
    "\n",
    "            result_df1[Igs_col] = Igs\n",
    "            result_df1[Vgs_col] = Vgs\n",
    "            result_df1[Ids_col] = Ids\n",
    "            result_df1[Vds_col] = Vds\n",
    "            result_df1[f'ro({suffix}'] = ro\n",
    "\n",
    "            vds_index = Vds[Vds == 1].index\n",
    "            if not vds_index.empty:\n",
    "                vds_index = vds_index[0]\n",
    "                result_df2 = result_df2.append({\n",
    "                    'Vgs': Vgs[vds_index],\n",
    "                    'ro': ro[vds_index],\n",
    "                    'Vds': 1\n",
    "                }, ignore_index=True)\n",
    "\n",
    "    # 保存修改后的CSV文件到gm文件夹中\n",
    "    # output_file_path1 = os.path.join(output_dir, f\"{os.path.splitext(file_name)[0]}_ro.csv\")\n",
    "    # result_df1.to_csv(output_file_path1, index=False)\n",
    "\n",
    "    output_file_path2 = os.path.join(output_dir, f\"{os.path.splitext(file_name)[0]}_ro-vds1.csv\")\n",
    "    result_df2.to_csv(output_file_path2, index=False)\n",
    "\n",
    "\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "py38",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
